<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_Friend
 * @version 		$Id: small.html.php 4856 2012-10-09 05:58:26Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
<ul class="block_listing">
{foreach from=$aFriends key=iKey name=friend item=aFriend}
	<li>
            
		<div class="block_listing_image">
			{img user=$aFriend suffix='_50_square' max_width=32 max_height=32}
		</div>	
                <div class="block_listing_title" style="padding-left:56px;">
			{$aFriend|user:'':'':'':12:true}
		</div>           
		
             
             <div class="row_title_info">
                    {if !$is_myprofile}
                    <span id="js_pages_unlike" {if !isset($aFriend.is_liked) || $aFriend.is_liked == 0} style="display:none;"{/if}>
                    <a onclick=" $(this).parent().parent().find('#pages_following').show(); $(this).parent().hide(); $.ajaxCall('like.delete', 'type_id=pages&amp;item_id={$aFriend.page_id}'); return false;" href="#">Following</a>
                    </span>


                    <span id="pages_following" {if $aFriend.is_liked > 0} style="display:none;"{/if}>
                    <a href="#" id="pages_like_join" onclick="$(this).parent().parent().find('#js_pages_unlike').show(); $(this).parent().hide(); {if $aFriend.page_type == '1' && $aFriend.reg_method == '1'} $.ajaxCall('pages.signup', 'page_id={$aFriend.page_id}'); {else}$.ajaxCall('like.add', 'type_id=pages&amp;item_id={$aFriend.page_id}');{/if} return false;">
                                    Follow
                            </a>
                    </span>
                    {/if}
            </div>	
		<div class="clear"></div>
	</li>
{/foreach}
{if count($aFriends)==0}
<div>
	No community found!
</div>
{/if}
</ul>
<div class="clear"></div>
{if count($aFriends)>0}
<div class="view_all">
    <a href="{url link='pages.view_page'}">View More</a>
</div>
{/if}
